public OnPlayerDeath(playerid, killerid, reason) {
    new formattedOutput[128];
	
    if (!IsPlayerConnected(killerid)) {
        format(formattedOutput, sizeof(formattedOutput), "[%02d] %s killed themself.", playerid, playerName(playerid));
        IRC_Say(g_ircBot, g_configData[echoChannel], formattedOutput);
        return true;
    }
  
    format(formattedOutput, sizeof(formattedOutput), "[%02d] %s killed %s. (%s)", playerid, playerName(killerid), playerName(playerid), weaponName(reason));
    IRC_Say(g_ircBot, g_configData[echoChannel], formattedOutput);
    return true;
}